<script setup>
import { RouterLink, RouterView } from 'vue-router'
import { ref, reactive, onMounted, watch, inject } from 'vue'
import { globalStore } from '@/stores/global.js'

const storeGlobal = globalStore()
const $http = inject('$http')

onMounted(async () => {
  $http('/api/script/all').then((res) => {
    storeGlobal.changeScriptType(res)
  })
})

</script>

<template>
  <RouterView />
</template>

<style scoped></style>
